package My.example.tes;

import My.example.config.springconfig;
import My.example.domain.Account;
import My.example.service.AccountService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

//简单的转账功能
public class te3 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(springconfig.class);
        AccountService service=context.getBean(AccountService.class);
        service.transfer("user1","user2",100d);
        List<Account>accounts= service.findAll();
        System.out.println(accounts);
    }
}
